<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_id" data-rule="required" data-source="goods/index" class="form-control selectpage" data-params='{"custom[status]":"1"}' name="row[goods_id]" type="text" value="">
        </div>
    </div>

    <h4 class="text-danger">广东规则</h4>
    <hr>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sz_sale_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sz_sale_amount" class="form-control" step="0.01" name="row[sz_sale_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sz_destory_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sz_destory_amount" class="form-control" step="0.01" name="row[sz_destory_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sz_parent_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sz_parent_amount" class="form-control" step="0.01" name="row[sz_parent_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warehouse_sale')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-warehouse_sale" class="form-control" step="0.01" name="row[warehouse_sale]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warehouse_parent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-warehouse_parent" class="form-control" step="0.01" name="row[warehouse_parent]" type="number" value="0.00">
        </div>
    </div>

    <h4 class="text-danger">其它地区规则</h4>
    <hr>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sale_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sale_amount" class="form-control" step="0.01" name="row[sale_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_ship_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_ship_amount" class="form-control" step="0.01" name="row[shop_ship_amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warehouse_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-warehouse_amount" class="form-control" step="0.01" name="row[warehouse_amount]" type="number" value="0.00">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Buy_level')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_checkboxs('row[rebate_level][]', $levelList, $row['rebate_level']??-1)}
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
